From: Florian Müllner Date: Wed, 28 Oct 2020 19:26:18 +0000 (+0100) Subject: credentialManager: Shut up a JS warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~725 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ef807619e96a562ca74de0950e67a7a3e49b650b;p=gnome-shell.git credentialManager: Shut up a JS warning Plain classes are private to their file, so accessing them from another module results in the following warning: That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Fix by assigning the class to a public variable instead. (Eventually switching to ES6 modules with proper imports/exports will fix this as well) Part-of: --- diff --git a/js/gdm/credentialManager.js b/js/gdm/credentialManager.js index cf001f4e4..5c4bc7e62 100644 --- a/js/gdm/credentialManager.js +++ b/js/gdm/credentialManager.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported CredentialManager */ -class CredentialManager { +var CredentialManager = class CredentialManager { constructor(service) { this._token = null; this._service = service; @@ -21,4 +21,4 @@ class CredentialManager { get service() { return this._service; } -} +};